package com.bobo.service.report;

import com.bobo.dto.Page;
import com.bobo.dto.ReportDto;
import com.bobo.model.Message;
import com.bobo.model.Report;
import com.bobo.model.Topic;
import com.bobo.model.User;

import java.util.List;


/**
 * Created by bobo on 16-11-3.
 */
public interface IReportService {

    public Integer create(Report report);

    public boolean del(Integer id);

    public Report getById(Integer id);

    public Page<Report> getReports(Integer messageId,Integer current, Integer pageSize);

    public Page<ReportDto> getReportDtos(Integer current, Integer pageSize);

    public List<Message> getReportByUser(User user, Topic topic);

}
